projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0725e41
)
Add sibling information to widget path string representations
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 18 Jun 2011 16:36:38 +0000
(12:36 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 18 Jun 2011 16:36:38 +0000
(12:36 -0400)
gtk/gtkwidgetpath.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidgetpath.c
b/gtk/gtkwidgetpath.c
index bdbb7d0b2d4c237d7cd2a03a4aa8ae7fdea0b279..d0be6de63ede6af699fdd5ca71ae24ecf3ab6fc5 100644
(file)
--- a/
gtk/gtkwidgetpath.c
+++ b/
gtk/gtkwidgetpath.c
@@
-328,6
+328,12
@@
gtk_widget_path_to_string (const GtkWidgetPath *path)
g_string_append_c (string, ')');
}
+
+ if (elem->siblings)
+ g_string_append_printf (string, "[%d/%d]",
+ elem->sibling_index,
+ gtk_widget_path_length (elem->siblings));
+
if (elem->classes)
{
for (j = 0; j < elem->classes->len; j++)